package pers.gxm.shiro.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import pers.gxm.shiro.pojo.User;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {
    List<String> getUserRoles(@Param("username") String username);

    List<String> getPermissionsByRole(@Param("roles")List<String> roles);
}
